<?php

/* disease/list.twig */
class __TwigTemplate_0e63b6ab34e3903064c5e472f706684c4cb92c350023cce3e8c71c90f71c5ddc extends Twig_Template
{
    public function __construct(Twig_Environment $env)
    {
        parent::__construct($env);

        // line 1
        $this->parent = $this->loadTemplate("base.twig", "disease/list.twig", 1);
        $this->blocks = array(
            'title' => array($this, 'block_title'),
            'head' => array($this, 'block_head'),
            'content' => array($this, 'block_content'),
        );
    }

    protected function doGetParent(array $context)
    {
        return "base.twig";
    }

    protected function doDisplay(array $context, array $blocks = array())
    {
        $this->parent->display($context, array_merge($this->blocks, $blocks));
    }

    // line 3
    public function block_title($context, array $blocks = array())
    {
        echo "list";
    }

    // line 4
    public function block_head($context, array $blocks = array())
    {
        // line 5
        echo "    ";
        $this->displayParentBlock("head", $context, $blocks);
        echo "
    <style type=\"text/css\">
        .important { color: #336699; }
    </style>
";
    }

    // line 10
    public function block_content($context, array $blocks = array())
    {
        // line 11
        echo "
        <div class=\"header\">
            <h1>";
        // line 13
        echo twig_escape_filter($this->env, (isset($context["title"]) ? $context["title"] : null), "html", null, true);
        echo "</h1>
            <h2>";
        // line 14
        echo twig_escape_filter($this->env, (isset($context["msg"]) ? $context["msg"] : null), "html", null, true);
        echo "</h2>
        </div>

        <div class=\"content\">
            
\t\t\t<table class=\"pure-table\">
\t\t\t    <thead>
\t\t\t        <tr>
\t\t\t            <th>#</th>
\t\t\t            <th>病种</th>
\t\t\t            <th>疗法</th>
\t\t\t            <th>图</th>
\t\t\t        </tr>
\t\t\t    </thead>

\t\t\t    <tbody>
\t\t\t";
        // line 30
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable((isset($context["diseases"]) ? $context["diseases"] : null));
        foreach ($context['_seq'] as $context["_key"] => $context["disease"]) {
            // line 31
            echo "\t\t\t\t\t<tr>
\t\t\t            <td><a class=\"button-secondary pure-button button-small\" href=\"/disease/edit/";
            // line 32
            echo twig_escape_filter($this->env, $this->getAttribute($context["disease"], "id", array()), "html", null, true);
            echo "\">";
            echo twig_escape_filter($this->env, $this->getAttribute($context["disease"], "id", array()), "html", null, true);
            echo "</a></td>
\t\t\t            <td>";
            // line 33
            echo twig_escape_filter($this->env, $this->getAttribute($context["disease"], "name", array()), "html", null, true);
            echo "</td>
\t\t\t            <td>";
            // line 34
            echo twig_escape_filter($this->env, $this->getAttribute($context["disease"], "treatment", array()), "html", null, true);
            echo "</td>
\t\t\t            <td>";
            // line 35
            if ($this->getAttribute($context["disease"], "picture", array())) {
                echo "<img class=\"pure-img sml-img\" src=\"/";
                echo twig_escape_filter($this->env, $this->getAttribute($context["disease"], "picture", array()), "html", null, true);
                echo "\">";
            }
            echo "</td>
\t\t\t        </tr>
\t\t\t";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['disease'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 38
        echo "\t\t\t        
\t\t\t    </tbody>
\t\t\t</table>


        </div>

";
    }

    public function getTemplateName()
    {
        return "disease/list.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  113 => 38,  100 => 35,  96 => 34,  92 => 33,  86 => 32,  83 => 31,  79 => 30,  60 => 14,  56 => 13,  52 => 11,  49 => 10,  39 => 5,  36 => 4,  30 => 3,  11 => 1,);
    }
}
/* {% extends "base.twig" %}*/
/* */
/* {% block title %}list{% endblock %}*/
/* {% block head %}*/
/*     {{ parent() }}*/
/*     <style type="text/css">*/
/*         .important { color: #336699; }*/
/*     </style>*/
/* {% endblock %}*/
/* {% block content %}*/
/* */
/*         <div class="header">*/
/*             <h1>{{title}}</h1>*/
/*             <h2>{{msg}}</h2>*/
/*         </div>*/
/* */
/*         <div class="content">*/
/*             */
/* 			<table class="pure-table">*/
/* 			    <thead>*/
/* 			        <tr>*/
/* 			            <th>#</th>*/
/* 			            <th>病种</th>*/
/* 			            <th>疗法</th>*/
/* 			            <th>图</th>*/
/* 			        </tr>*/
/* 			    </thead>*/
/* */
/* 			    <tbody>*/
/* 			{% for disease in diseases %}*/
/* 					<tr>*/
/* 			            <td><a class="button-secondary pure-button button-small" href="/disease/edit/{{disease.id}}">{{disease.id}}</a></td>*/
/* 			            <td>{{disease.name}}</td>*/
/* 			            <td>{{disease.treatment}}</td>*/
/* 			            <td>{% if disease.picture %}<img class="pure-img sml-img" src="/{{disease.picture}}">{% endif %}</td>*/
/* 			        </tr>*/
/* 			{% endfor %}*/
/* 			        */
/* 			    </tbody>*/
/* 			</table>*/
/* */
/* */
/*         </div>*/
/* */
/* {% endblock %}*/
